package org.jdcenter.server.xb.parser;

import java.util.List;

import org.dom4j.Element;
import org.jdcenter.server.xb.metadata.BootstrapMateData;
import org.jdcenter.server.xb.metadata.MateData;
/**
 * @author miao
 * @since 2008-11-27
 *
 */
public class BootstrapParser<T extends MateData> extends AbstractParser{

	@Override
	public T parseXML() {
		BootstrapMateData bmt = new BootstrapMateData();
		List<Element> elements = root.elements("url");
		for(Element el:elements){
			bmt.addUrl(el.getTextTrim());
		}
		return (T)bmt;
	}

}
